package com.hsy.raffle.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsy.raffle.entity.Raffle;
import org.apache.ibatis.annotations.Select;

/**
 * 抽奖表(Raffle)表数据库访问层
 *
 * @author makejava
 * @since 2023-05-08 16:00:22
 */
public interface RaffleDao extends BaseMapper<Raffle> {
    @Select("select * from t_raffle where uid=#{uid} order by ctime desc limit 1")
    Raffle selectLast(int uid);
}

